package org.example.annotation;

import java.util.concurrent.TimeUnit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author : libo@juzishuke.com
 * @Title :
 * @Description :
 * @date : 2024/2/22 17:01
 * @since :1.0
 */
@Slf4j
@Component
public class Test1 {
    @EnableRedisLock(lockKey = "student", expireTime = 10, timeUnit = TimeUnit.SECONDS, retryTimes = 5)
    public void method1() {
        // 这里写业务逻辑
        log.info("method1");
    }
}
